<div class="deal">
<div class="deal_content_top"></div>
<div class="deal_content">
<h3>Edit</h3>
<?php if(count($this->errors) > 0): ?>
		<div class="ui-widget">
			<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
			<?php foreach($this->errors as $error): ?> 
				<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				<?php echo $error ?></p>    
			<?php endforeach ?>
			</div>
		</div>
	<?php endif ?>
	
    <form action="<?php echo $this->baseUrl('index.php/admin_cms/category/editpost') ?>" method="post">
        <input type="hidden" name="category_id" value="<?php echo $this->cat->category_id?>" />
	    <table style="width: 100%;">
	        <tbody>
	            <tr>
	                <td style="width: 98px;">Deal</td>
	                <td><a href="<?php echo $this->baseUrl('index.php/cms/index/deal/id/' . $this->comment->deal_id . '#comment') ?>">
					Xem chi tiết
					</a></td>
	            </tr>
	            <tr>
	                <td style="width: 98px;">Nội dung</td>
	                <td><?php echo $this->comment->content ?></td>
	            </tr>
	            <tr>
	            <?php if($this->comment->status == 0): ?>
	            <td>Status</td><td>Private</td>
	            </tr>
	            <tr><td></td><td><a
				href="<?php echo $this->baseUrl('index.php/admin_cms/comment/public/id/' . $this->comment->comment_id) ?>"
				onclick="if(!confirm('Public ?',''))return false;"> <img title="Make comment public"
				alt="Delete"
				src="<?php echo $this->baseUrl('public/images/private.png') ?>"> </a>
				</td>
				<?php else: ?>
				<td>Status</td><td>Private</td>
	            </tr>
	            <tr><td></td><td><a
				href="<?php echo $this->baseUrl('index.php/admin_cms/comment/private/id/' . $this->comment->comment_id) ?>"
				onclick="if(!confirm('Private ?',''))return false;"> <img title="Make comment private"
				alt="Delete"
				src="<?php echo $this->baseUrl('public/images/public.png') ?>"> </a>
				<?php endif; ?>
	            </tr>
	        </tbody>
	    </table>
    </form>    
</div>
<div class="deal_content_bottom"></div>
</div>